import request from '@/utils/request'

// 查询应用使用记录列表
export function listAppUsageRecord(query) {
  return request({
    url: '/system/appUsageRecord/list',
    method: 'get',
    params: query
  })
}

// 查询应用使用记录详细
export function getAppUsageRecord(id) {
  return request({
    url: '/system/appUsageRecord/' + id,
    method: 'get'
  })
}

// 新增应用使用记录
export function addAppUsageRecord(data) {
  return request({
    url: '/system/appUsageRecord',
    method: 'post',
    data: data
  })
}

// 修改应用使用记录
export function updateAppUsageRecord(data) {
  return request({
    url: '/system/appUsageRecord',
    method: 'put',
    data: data
  })
}

// 删除应用使用记录
export function delAppUsageRecord(id) {
  return request({
    url: '/system/appUsageRecord/' + id,
    method: 'delete'
  })
}
